diff options
| author | Jay V <[email protected]> | 2025-05-26 16:36:30 -0400 |
|---|---|---|
| committer | Jay V <[email protected]> | 2025-05-26 17:25:12 -0400 |
| commit | deacf5991abfb777aae7823a8e7e352fbefdabd0 (patch) | |
| tree | c38f80fa937298c17529c030d3e360ea92e45d72 /www/src/pages/share/[...id].astro | |
| parent | 25623d1f84b6fa582f71b1b309f6e8235d4154a3 (diff) | |
| download | opencode-deacf5991abfb777aae7823a8e7e352fbefdabd0.tar.gz opencode-deacf5991abfb777aae7823a8e7e352fbefdabd0.zip | |
Adding share page
Diffstat (limited to 'www/src/pages/share/[...id].astro')
| -rw-r--r-- | www/src/pages/share/[...id].astro | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/www/src/pages/share/[...id].astro b/www/src/pages/share/[...id].astro new file mode 100644 index 000000000..c3bc50d3b --- /dev/null +++ b/www/src/pages/share/[...id].astro @@ -0,0 +1,35 @@ +--- +import config from "virtual:starlight/user-config"; + +import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro'; +import Share from "../../components/Share.tsx"; + +export const prerender = false; + +// TODO: Replace with API URL from environment + +const { id } = Astro.params; +console.log(Astro.url.pathname); +//console.log(config); +--- + +<StarlightPage + hasSidebar={false} + frontmatter={{ + title: "Share", + pageFind: false, + template: "splash", + tableOfContents: false, + }} +> + <Share id={id} api="https://api.dev.opencode.ai" client:only="solid" /> +</StarlightPage> + +<style is:global> +body > .page > .main-frame .main-pane > main > .content-panel:first-of-type { + display: none; +} +body > .page > .main-frame .main-pane > main > .content-panel + .content-panel { + border-top: none; +} +</style> |
